import status from "./status";
import message from "./message";
// import userName from "./userName";
import changeUserName from './userName'
import { combineReducers } from "redux";

export default combineReducers({
  status,
  message,
  userName: changeUserName  //属性名和方法名不一样时
})

// combineReducers内部实现:
// export default function (state = {}, action) {
//   return {
//     status: status(state.status, action),
//     message: message(state.message, action),
//     userName: userName(state.userName, action)
//   }
// }